﻿using System.Data.Services;
using System.Data.Services.Common;
using BookStoreService.Core;

namespace BookStoreService.Host
{
    // BookStoreDataServiceCore resides in a separate assembly
    public class UsersDataService : UsersDataServiceCore    
    {
        public static void InitializeService(DataServiceConfiguration config)
        {
            config.SetEntitySetAccessRule("*", EntitySetRights.All);
            config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V2;
            config.DataServiceBehavior.AcceptProjectionRequests = true;
        }
    }
}
